package com.jiujichina.utils;

import org.springframework.web.client.RestTemplate;

public class RestUtils {

    public void test(){
        //请求地址
        String url = "http://localhost:8080/testPost";
        //入参
        String requestBean = new String();
        RestTemplate restTemplate = new RestTemplate();
        String responseBean = restTemplate.getForObject(url,String.class);
    }
}
